<?php

namespace App\Http\Controllers\Customer;

use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Facades\Services\RecyclingBagService;
use ValiDate;

class RecyclingBagController extends Controller
{
    public function addRecyclingBag(Request $request){
    	$rules = [
    		'customer_id' => 'required|exists:customers,id'
    	];

    	ValiDate::valiDate($request,$rules);

    	RecyclingBagService::addRecyclingBag($request->all());

    	return formatJsonResponse();
    }
}
